﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Araman.Models.ViewModels
{


    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using Araman.Resources;

    public class LoginModel
    {
        [Required(ErrorMessageResourceName="Users_Login_UserName_Empty", ErrorMessageResourceType=typeof(LngViewErrors))]
        [MaxLength(32, ErrorMessageResourceName="Users_Login_UserName_MaxLength", ErrorMessageResourceType=typeof(LngViewErrors))]
        [Display(Name="Username", ResourceType=typeof(LngModelDisplayNames))]
        public string LoginUserName { get; set; }

        [Required(ErrorMessageResourceName="Users_Login_Password_Empty", ErrorMessageResourceType=typeof(LngViewErrors))]
        [MaxLength(32, ErrorMessageResourceName = "Users_Login_Password_MaxLength", ErrorMessageResourceType = typeof(LngViewErrors))]
        [DataType(DataType.Password)]
        [Display(Name="Password", ResourceType=typeof(LngModelDisplayNames))]
        public string LoginPassword { get; set; }
    }
}